package org.derusse.cycle.model;

import org.derusse.cycle.R;

public class Theme {
	public static final int THEME_FULL = 1;
	public static final int THEME_SMALL = 0;
	
	public int theme = 0;
	
	
	public int layout = -1;
	
	public int textSpeed = -1;
	public int textSpeedMax = -1;
	public int textSpeedAvg = -1;
	public int textSpeedAvg1 = -1;
	public int textSpeedAvg10 = -1;

	public int textLatitude = -1;
	public int textLongitude = -1;
	public int textAltitude = -1;
	public int textAccuracy = -1;

	public int textDistance = -1;
	public int textDistanceClimb = -1;
	public int textDistanceTilt = -1;
	
	public int textChronoTotal = -1;
	public int textChronoPause = -1;

	public int viewStart = -1;
	public int viewStop = -1;
	public int viewPause = -1;
	public int viewResume = -1;
	
	public int buttonStart = -1;
	public int buttonStop = -1;
	public int buttonPause = -1;
	public int buttonResume = -1;
	
	public Theme(int theme)
	{
		this.theme = theme;
		switch(theme)
		{
			case THEME_SMALL:
				this.layout = R.layout.main_small;
				
				this.textSpeed = R.id.MainSmallSpeed;
				
				this.textDistance = R.id.MainSmallDistance;
				
				this.textAltitude = R.id.MainSmallAltitude;
				this.textAccuracy= R.id.MainSmallAccuracy;
				this.textLatitude = R.id.MainSmallLatitude;
				this.textLongitude = R.id.MainSmallLongitude;

				this.viewStart = R.id.SmallLayoutStart;
				this.viewStop = R.id.SmallLayoutStop;
				this.viewPause = R.id.SmallButtonPause;
				this.viewResume = R.id.SmallButtonResume;
				
				this.buttonStart = R.id.SmallButtonStart;
				this.buttonStop = R.id.SmallButtonStop;
				this.buttonPause = R.id.SmallButtonPause;
				this.buttonResume = R.id.SmallButtonResume;
				break;
			case THEME_FULL:
				this.layout = R.layout.main_full;
				
				this.textDistance = R.id.MainFullDistance;
				this.textDistanceClimb = R.id.MainFullDistanceClimb;
				this.textDistanceTilt = R.id.MainFullDistanceTilt;
				this.textAccuracy= R.id.MainFullDistanceAccuracy;
				
				this.textAltitude = R.id.MainFullDistanceAltitude;

				this.textSpeed = R.id.MainFullSpeed;
				this.textSpeedMax = R.id.MainFullSpeedMax;
				this.textSpeedAvg = R.id.MainFullSpeedAvg;
				this.textSpeedAvg1 = R.id.MainFullSpeedAvg1;
				this.textSpeedAvg10 = R.id.MainFullSpeedAvg10;
				
				this.textChronoTotal = R.id.TextView01;
				
				this.viewStart = R.id.FullLayoutStart;
				this.viewStop = R.id.FullLayoutStop;
				this.viewPause = R.id.FullButtonPause;
				this.viewResume = R.id.FullButtonResume;
				
				this.buttonStart = R.id.FullButtonStart;
				this.buttonStop = R.id.FullButtonStop;
				this.buttonPause = R.id.FullButtonPause;
				this.buttonResume = R.id.FullButtonResume;
				break;
		}
	}
}
